write-host
write-host
	
$TempDir = ".\~Temp"	
$SourceDir =  "D:\projekte\BiztroNeuesLogging_FH_2011.03.30"					 
#$TargetDir =  "D:\Temp\RoboTarget"
$TargetDir =  $TempDir

$fileExcludes = '"thumbs.db" "*.log"  "*.zip" "*.rar" "*.7z" '
$directoryExcludes = '"_svn" "bin" "obj" '

$robocopy = ".\robocopy.exe"

write-host TempDir $TempDir
write-host SourceDir $SourceDir
write-host TargetDir $TargetDir
write-host RobocopyExePath $robocopy
write-host FileExcludes $fileExcludes
write-host DirectoryExcludes $directoryExcludes
write-host 

if(Test-Path $TempDir){
	write-host Deleting old tempdir: $TemDir
	ri $TempDir -force -recurse 
} 	

		
#&$robocopy "$SourceDir" "$TargetDir" /E /R:3 /W:1 /COPYALL /XD $directoryExcludes  /XF $fileExcludes


#read-host "Please enter your age:"

